<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        body{
            margin: 0;
        }
        .main{
            height: 100vh;
            background-color: pink;
        }
        .box:nth-child(1){
            width: 200px;
            height: 50%;
            background-color: gold;
            float: left;
        }

        .box:nth-child(2){
            height: 100%;
            /*margin-left: 200px;*/
            overflow: hidden;
            background-color: red;
        }

    </style>
</head>
<body>
<div class="main">
    <div class="box">1</div>
    <div class="box">2</div>
</div>
</body>
</html>
